package com.yunkeji.api.user.mapper;

import com.yunkeji.dao.domain.SysHelloDetail;
import com.yunkeji.dao.mapper.SysHelloDetailMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用户
 *
 * @author 老张
 */
public interface ApiSysHelloDetailMapper extends SysHelloDetailMapper {

    @Select(
            "select send_uid,rec_uid,reply "
                    + " from ykj_sys_hello_detail "
                    + " where (send_uid=#{from} and rec_uid=#{to} ) or  (send_uid=#{to} and rec_uid=#{from} ) limit 1")
    SysHelloDetail getHelloDetail(@Param("from") Long from, @Param("to") Long to);
}
